@charset "utf-8";

body {
    margin: 0;
    padding: 0;
}

nav {
    position: fixed;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 70px;
    top: 0;
    background: linear-gradient(to right, rgba(123, 161, 197, 0.95), rgba(84, 109, 158, 0.95));
    backdrop-filter: blur(8px);
    font-size: 20px;
    color: rgb(234, 247, 255);
    z-index: 1000;
    padding: 0 5%;
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav:hover {
    background: linear-gradient(to right, rgba(123, 161, 197, 0.98), rgba(84, 109, 158, 0.98));
}

nav .navtitle {
    width: auto;
    margin-right: 40px;
    margin-right: 160px;
}

nav .navtitle strong {
    font-size: 50px;
    font-weight: bolder;
    background: linear-gradient(45deg, #1500ff, #ff00d9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

nav a {
    text-decoration: none;
    height: 100%;
    line-height: 70px;
    width: 120px;
    text-align: center;
    font-weight: 600;
    color: rgb(234, 247, 255);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 0 20px;
}

/* 导航栏下划线 ::before是伪元素，用于在元素内容之前插入内容 */
nav a::before { 
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #1500ff, #ff00d9);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

nav a:hover::before {
    width: 80%;
}

nav a:hover {
    background: linear-gradient(to right, rgba(21, 0, 255, 0.1), rgba(255, 0, 217, 0.1));
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(21, 0, 255, 0.2);
    transform: translateY(-2px);
    letter-spacing: 1px;
}

nav a:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(21, 0, 255, 0.1);
}

nav .none {
    width: 20%;
}

@media (max-width: 768px) {
    nav {
        padding: 0 2%;
    }

    nav a {
        width: 100px;
        font-size: 16px;
    }

    nav .navtitle strong {
        font-size: 40px;
    }
}

/* 登录链接样式 */
.login-link {
    margin-left: auto !important;
    margin-right: 160px !important;
    background: #546d9e !important;
    color: white !important;
    padding: 5px 15px !important;
    border-radius: 4px !important;
    height: auto !important;
    line-height: normal !important;
}

.login-link:hover {
    background: #3a4d7c !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(21, 0, 255, 0.2);
}